﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TagCore;

namespace TagManager
{
    public class DummyTag : IMusicTag
    {
        private MusicData md;
        private FileData fd;

        public DummyTag()
        {
            md = new MusicData();
            md.Artists = new string[] { "Michael Jackson" };
            md.Title = "Billie Jean";
            md.Year = 1985;
            md.AlbumArtists = new string[] { "Michael Jacksonx" };
            md.Comments = "This is an all time greatest track of all time.";
            md.Genre = "Dance";
            md.Track = 1;
            md.Album = "Thriller";
        }

        public override string ToString()
        {
            return "Dummy Tag";
        }
        public string Provider()
        {
            return Provider();
        }

        public FileTypes SupportedTypes()
        {
            return FileTypes.m4a;
        }

        public void Load(FileData file)
        {
            // do nothing
            this.fd = file;
        }

        public void Refresh()
        {
            // do nothing
        }

        public void Save()
        {
            // do nothing
        }

        public IMusicData Data
        {
            get
            {
                return md;
            }
        }


        public void Rename(string filename)
        {
            throw new NotImplementedException();
        }


        public void Close()
        {
            throw new NotImplementedException();
        }
    }

}
